﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Entity;

namespace Web.admin.OutterManage
{
    public partial class AuditOutterReport : System.Web.UI.Page
    {
        ContestService ContestService = new ContestService();

        protected void Page_Load(object sender, EventArgs e)
        {
            string ContestId = Request["id"];
            if (ContestId == null)
                return;

            BoContests Contests = ContestService.getContest(ContestId);
            if (Contests.CON_ISCHECK == 0)
                Contests.CON_ISCHECK = 1;
            else
                Contests.CON_ISCHECK = 0;

            ContestService.UpdateContest(Contests);
            Response.Redirect("OutterCheck.aspx");
        }
    }
}